<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<meta content="招聘" http-equiv="keywords">
		<meta name="description" content="招聘,培训">
		<meta name="format-detection" content="telephone=no">
		<!-- 禁止IPHONE识别手机号码 -->
		<meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1">
		<meta name="renderer" content="webkit">
		<title>实训订单</title>
		<!-- css -->
		<link rel="stylesheet" type="text/css" th:href="@{/asserts/css/index.css}">
		<link rel="stylesheet" type="text/css" th:href="@{/asserts/css/swiper.min.css}">
		<!-- public_css -->
		<link rel="stylesheet" type="text/css" th:href="@{/asserts/css/public_lib.css}">
		<!-- zy_public_css -->
		<link rel="stylesheet" type="text/css" th:href="@{/asserts/css/zy_public.css}">
		<!-- 子页css -->
		<link rel="stylesheet" type="text/css" th:href="@{/asserts/css/children.css}">
		<!-- js -->
		<script type="text/javascript" th:src="@{/asserts/js/jquery-3.3.1.min.js}"></script>
		<script type="text/javascript" th:src="@{/asserts/js/swiper.min.js}"></script>
		<script type="text/javascript" th:src="@{/asserts/js/public.js}"></script>
		<script th:src="@{/asserts/Apolar_sh/lib/layer/2.4/layer.js}"></script>
		<style type="text/css">
			.ems {
				width: 50px;
				text-align: center;
				height: 25px;

			}
			.Fillet{
				margin-left: 1%;
				width: 93%;
				border: 1px solid darkturquoise;
				border-radius: 15px;
			}
		</style>
	</head>
	<body>
		<header class="zy_search_top_box">
			<div class="zy_search_top fix">
				<div class="one">
					<a th:href="@{/m_member/loginOut}"><img th:src="@{/asserts/images/Logout.png}"></a>
				</div>
				<!-- 注释去间隙
 间隙-->
				<div class="box">
					<form method="post" th:action="@{/mTraining/search(pageSize=${pageBean==null?5:pageBean.pageSize},currentPage=1)}">
						<span><img th:src="@{/asserts/images/icon_search.png}"></span>
						<input type="text" name="trainingOrderName" placeholder="请输入姓名">
					</form>
				</div>
				<!-- 注释去间隙
 间隙-->
				<div class="r">
					<a th:href="@{/mTraining/addUI}">添加</a>
				</div>
			</div>
		</header>
		<div style="height: 10px;"></div>
		<!-- 内容框 -->
		<div class="zy_module-content">
			<!-- 消息 -->
			<div class="tuij_box item_list">
				<ul>
					<!-- 循环 -->
					<li class="Fillet list_box" th:each="train:${pageBean.list}">
						<div class="list_info">
						<a th:href="@{/mTraining/modifyUI(trainingOrderId=${train.trainingOrderId},pageSize=${pageBean.pageSize},currentPage=${pageBean.pageNum},searchUrl=${searchUrl})}">
							<div class="item_tit fix">
								<h2 class="l pct80">姓名：<b class="g3 n" th:text="${train.trainingOrderName}"></b></h2>
								<h2>查看详情</h2>
							</div>
							<div class="item_tit fix">
								<h2 class="l pct80">渠道专员：<b class="g3 n" th:text="${train.channelName}">渠道专员1</b></h2>
							</div>
							<div class="item_tit fix"> 	
								<h2 class="l pct80">咨询专员：<b class="g3 n" th:text="${train.consultName}">咨询专员1</b></h2>
							</div>
						</a>
						</div>
						<div th:onclick="submitDelete([[${train.trainingOrderId}]])" class="list_delete" hidden>
							<span>删除</span>
						</div> </li>
					</li>
				</ul>
			</div>
			<!-- 翻页 -->
			<div class="zy_fanye dis_flex">
				<a th:if="${pageBean.pageNum!=1 && searchUrl==null }" th:href="@{/mTraining/list(currentPage=${pageBean.pageNum-1},pageSize=${pageBean.pageSize})}">上一页</a>
				<a th:if="${pageBean.pageNum!=1 && searchUrl!=null }" th:href="@{${searchUrl}(currentPage=${pageBean.pageNum-1},pageSize=${pageBean.pageSize})}">上一页</a>
				<a th:if="${pageBean.pageNum!=pageBean.pages &&searchUrl==null }" th:href="@{/mTraining/list(currentPage=${pageBean.pageNum+1},pageSize=${pageBean.pageSize})}">下一页</a>
				<a th:if="${pageBean.pageNum!=pageBean.pages &&searchUrl!=null }" th:href="@{${searchUrl}(currentPage=${pageBean.pageNum+1},pageSize=${pageBean.pageSize})}">下一页</a>
			</div>
		</div>
		<!-- 返回顶部 -->
		<div class="go_top">
			<a class="btn_top"></a>
		</div>
		<!-- 底部 -->
		<div class="footer_box">
			<div class="footer">
				<div class="txt">
					<strong>Copyright &copy; 2019 <a href="http://www.gem-inno.com">高博优智开发工作室</a> | </strong>版权所有 盗版必究.
				</div>
			</div>
		</div>
		<!-- 底部导航 -->
		<div class="foot_menu">
			<ul>
				<li><a th:href="@{/mcampus/findAll}"> <i><img
						th:src="@{/asserts/images/menu_icon01.png}"></i> <span>信息采集</span> </a>
				</li>
				<li><a th:href="@{/mcampusVisit/findAll}"> <i><img
						th:src="@{/asserts/images/menu_icon02.png}"></i>
					<span>拜访记录</span> </a></li>
				<li><a style="color: #00caff" th:href="@{/mTraining/list}"> <i><img
						th:src="@{/asserts/images/menu_icon03.png}"></i>
					<span>实训订单</span></a></li>
				<li><a th:href="@{/mds/dsShow}"> <i><img
						th:src="@{/asserts/images/menu_icon04.png}"></i>
					<span>日常经费</span> </a></li>
			</ul>
		</div>
		</div>
		<script type="text/javascript">
			huadong('.list_info','.list_delete');
			function submitDelete(trainId) {
				layer.confirm("确认删除？",
						{
							btn: ['确定', '取消'] //按钮
						},
						function () {
							$.ajax({
								type: 'POST',
								url: "[[${#httpServletRequest.getContextPath()}]]"+"/mTraining/delete?checks="+trainId+"&pageSize=[[${pageBean.pageSize}]]&currentPage=[[${pageBean.pageNum}]]&searchUrl=[[${searchUrl}]]",
								success: function (data) {
									if (data.id === 0) {
										layer.msg(data.data, {
											icon: 1,
											time: 500
										});
										setTimeout(function () {
											location.replace(location.href);
										}, 500);
									} else {
										layer.msg(data.data, {
											icon: 0,
											time: 2000
										});
									}
								},
								error: function (data) {
									console.log(data.msg);
								}
							});
						},
						function () {
							layer.msg('已取消！', {icon: 0,time:500});
							return false;
						}
				);
			};

		</script>
	</body>
</html>
